﻿using System;

namespace ArrayTest
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] Array ={5,6,7,8,9,10};
            Console.WriteLine("原数组：");
            for (int i = 0; i < 5; i++)
            {
                Console.Write(Array[i]);
            }
            Console.WriteLine();
            Change(Array);
            Console.WriteLine("运行函数后的数组：");
            for (int i = 0; i < 5; i++)
            {
                Console.Write(Array[i]);
            }
            Console.ReadKey();
        }
        static void Change(int[] A)
        {
            for (int i = 0; i < 5; i++)
            {
                A[i] = A[i] - 5;
            }
        }
    }
}
